package com.wellsoft.pt.app.dingtalk.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.wellsoft.pt.app.dingtalk.dao.WorkRecordDao;
import com.wellsoft.pt.app.dingtalk.entity.WorkRecord;
import com.wellsoft.pt.app.dingtalk.service.WorkRecordService;
import com.wellsoft.pt.jpa.service.impl.AbstractJpaServiceImpl;

/**
 * Description: 钉钉待办service实现类
 * 
 * @author bryanlin
 * @date 2020年5月18日
 * @version 1.0
 * 
 *          <pre>
 * 修改记录:
 * 修改后版本	修改人		修改日期			修改内容
 * 2020年5月18日.1	bryanlin		2020年5月18日		Create
 *          </pre>
 *
 */
@Service
public class WorkRecordServiceImpl extends AbstractJpaServiceImpl<WorkRecord, WorkRecordDao, String>
		implements WorkRecordService {

	@Override
	public WorkRecord getWorkRecordByCondition(String bizId, String userId, String recordId) {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("bizId", bizId);
		param.put("userId", userId);
		param.put("recordId", recordId);
		return this.dao.getOneByNameSQLQuery("getWorkRecordByCondition", param);
	}
}
